.class public Lcom/instagram/creation/video/a;
.super Ljava/lang/Object;
.source "ClipStackManager.java"

# interfaces
.implements Lcom/instagram/creation/video/g/b;


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xe
.end annotation


# instance fields
.field private a:Lcom/instagram/creation/video/g/d;

.field private b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/creation/video/c;",
            ">;"
        }
    .end annotation
.end field

.field private c:Lcom/instagram/creation/video/g/a;

.field private d:Z


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    .line 32
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 26
    new-instance v0, Lcom/instagram/creation/video/g/d;

    invoke-direct {v0}, Lcom/instagram/creation/video/g/d;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    .line 27
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/a;->b:Ljava/util/List;

    .line 30
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/creation/video/a;->d:Z

    .line 34
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    new-instance v1, Lcom/instagram/creation/video/b;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/b;-><init>(Lcom/instagram/creation/video/a;)V

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/g/d;->a(Lcom/instagram/creation/video/b/c;)V

    .line 52
    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/video/a;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 20
    iget-object v0, p0, Lcom/instagram/creation/video/a;->b:Ljava/util/List;

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/creation/video/a;)Lcom/instagram/creation/video/g/d;
    .locals 1
    .parameter

    .prologue
    .line 20
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/creation/video/a;)Z
    .locals 1
    .parameter

    .prologue
    .line 20
    iget-boolean v0, p0, Lcom/instagram/creation/video/a;->d:Z

    return v0
.end method


# virtual methods
.method public a()Lcom/instagram/creation/video/g/a;
    .locals 1

    .prologue
    .line 86
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    return-object v0
.end method

.method public a(II)Lcom/instagram/creation/video/g/a;
    .locals 5
    .parameter
    .parameter

    .prologue
    .line 77
    new-instance v0, Lcom/instagram/creation/video/g/a;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    int-to-long v3, p1

    add-long/2addr v1, v3

    invoke-direct {v0, v1, v2}, Lcom/instagram/creation/video/g/a;-><init>(J)V

    iput-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    .line 78
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    sget-object v1, Lcom/instagram/creation/video/g/c;->a:Lcom/instagram/creation/video/g/c;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/g/a;->a(Lcom/instagram/creation/video/g/c;)V

    .line 79
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    invoke-virtual {v0, p2}, Lcom/instagram/creation/video/g/a;->a(I)V

    .line 80
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    iget-object v1, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/g/d;->a(Ljava/lang/Object;)Z

    .line 81
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/g/a;->a(Lcom/instagram/creation/video/g/b;)V

    .line 82
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    return-object v0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 55
    const-string v0, "hasImportedClips"

    iget-boolean v1, p0, Lcom/instagram/creation/video/a;->d:Z

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 56
    return-void
.end method

.method public a(Lcom/instagram/creation/video/c;)V
    .locals 1
    .parameter

    .prologue
    .line 107
    iget-object v0, p0, Lcom/instagram/creation/video/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 108
    return-void
.end method

.method public a(Lcom/instagram/creation/video/g/a;)V
    .locals 3
    .parameter

    .prologue
    .line 70
    const-string v0, "ClipStackManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Adding an existing clip "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/instagram/creation/video/g/a;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 71
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0, p1}, Lcom/instagram/creation/video/g/d;->a(Ljava/lang/Object;)Z

    .line 72
    iput-object p1, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    .line 73
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/g/a;->a(Lcom/instagram/creation/video/g/b;)V

    .line 74
    return-void
.end method

.method public a(Lcom/instagram/creation/video/g/a;J)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 129
    iget-object v0, p0, Lcom/instagram/creation/video/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/c;

    .line 130
    invoke-interface {v0, p1}, Lcom/instagram/creation/video/c;->c(Lcom/instagram/creation/video/g/a;)V

    goto :goto_0

    .line 132
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/creation/video/a;->m()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 133
    iget-object v0, p0, Lcom/instagram/creation/video/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/c;

    .line 134
    invoke-interface {v0}, Lcom/instagram/creation/video/c;->a()V

    goto :goto_1

    .line 137
    :cond_1
    return-void
.end method

.method public a(Lcom/instagram/creation/video/g/a;Lcom/instagram/creation/video/g/c;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 142
    iget-object v0, p0, Lcom/instagram/creation/video/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/c;

    .line 143
    invoke-interface {v0, p1, p2}, Lcom/instagram/creation/video/c;->a(Lcom/instagram/creation/video/g/a;Lcom/instagram/creation/video/g/c;)V

    goto :goto_0

    .line 145
    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 230
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 231
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    .line 236
    :goto_0
    return-void

    .line 235
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    invoke-virtual {v0, p1}, Lcom/instagram/creation/video/g/a;->b(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public a(Ljava/util/List;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/creation/video/g/a;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 63
    const-string v0, "ClipStackManager"

    const-string v1, "Restoring clips:"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 64
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/g/a;

    .line 65
    invoke-virtual {p0, v0}, Lcom/instagram/creation/video/a;->a(Lcom/instagram/creation/video/g/a;)V

    goto :goto_0

    .line 67
    :cond_0
    return-void
.end method

.method public a(Z)V
    .locals 0
    .parameter

    .prologue
    .line 222
    iput-boolean p1, p0, Lcom/instagram/creation/video/a;->d:Z

    .line 223
    return-void
.end method

.method public b()Lcom/instagram/creation/video/g/d;
    .locals 1

    .prologue
    .line 90
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    return-object v0
.end method

.method public b(Landroid/os/Bundle;)V
    .locals 1
    .parameter

    .prologue
    .line 59
    const-string v0, "hasImportedClips"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    invoke-virtual {p0, v0}, Lcom/instagram/creation/video/a;->a(Z)V

    .line 60
    return-void
.end method

.method public b(Lcom/instagram/creation/video/c;)V
    .locals 1
    .parameter

    .prologue
    .line 111
    iget-object v0, p0, Lcom/instagram/creation/video/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 112
    return-void
.end method

.method public c()I
    .locals 1

    .prologue
    .line 94
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->c()I

    move-result v0

    return v0
.end method

.method public d()Z
    .locals 3

    .prologue
    .line 98
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/g/a;

    .line 99
    invoke-virtual {v0}, Lcom/instagram/creation/video/g/a;->b()Lcom/instagram/creation/video/g/c;

    move-result-object v0

    sget-object v2, Lcom/instagram/creation/video/g/c;->a:Lcom/instagram/creation/video/g/c;

    if-eq v0, v2, :cond_0

    .line 100
    const/4 v0, 0x1

    .line 103
    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public e()V
    .locals 3

    .prologue
    .line 115
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/instagram/creation/video/g/a;->a(J)V

    .line 116
    return-void
.end method

.method public f()V
    .locals 3

    .prologue
    .line 119
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    if-nez v0, :cond_0

    .line 125
    :goto_0
    return-void

    .line 123
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    sget-object v1, Lcom/instagram/creation/video/g/c;->b:Lcom/instagram/creation/video/g/c;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/g/a;->a(Lcom/instagram/creation/video/g/c;)V

    .line 124
    iget-object v0, p0, Lcom/instagram/creation/video/a;->c:Lcom/instagram/creation/video/g/a;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/instagram/creation/video/g/a;->a(J)V

    goto :goto_0
.end method

.method public g()Z
    .locals 2

    .prologue
    .line 148
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->d()Lcom/instagram/creation/video/g/a;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->d()Lcom/instagram/creation/video/g/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/a;->b()Lcom/instagram/creation/video/g/c;

    move-result-object v0

    sget-object v1, Lcom/instagram/creation/video/g/c;->c:Lcom/instagram/creation/video/g/c;

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public h()V
    .locals 2

    .prologue
    .line 153
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->d()Lcom/instagram/creation/video/g/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 154
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->d()Lcom/instagram/creation/video/g/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/creation/video/g/c;->b:Lcom/instagram/creation/video/g/c;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/g/a;->a(Lcom/instagram/creation/video/g/c;)V

    .line 156
    :cond_0
    return-void
.end method

.method public i()V
    .locals 5

    .prologue
    .line 159
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->d()Lcom/instagram/creation/video/g/a;

    move-result-object v1

    .line 160
    if-eqz v1, :cond_0

    .line 161
    invoke-virtual {v1}, Lcom/instagram/creation/video/g/a;->c()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 163
    :try_start_0
    new-instance v0, Landroid/media/MediaMetadataRetriever;

    invoke-direct {v0}, Landroid/media/MediaMetadataRetriever;-><init>()V

    .line 164
    invoke-virtual {v1}, Lcom/instagram/creation/video/g/a;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/media/MediaMetadataRetriever;->setDataSource(Ljava/lang/String;)V

    .line 165
    const/16 v2, 0x9

    invoke-virtual {v0, v2}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v0

    .line 167
    if-eqz v0, :cond_1

    .line 168
    const-string v2, "ClipStackManager"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "duration: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {v0}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 181
    :cond_0
    :goto_0
    return-void

    .line 171
    :catch_0
    move-exception v0

    .line 172
    const-string v2, "ClipStackManager"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Exception when retrieving metadata: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 177
    :cond_1
    :goto_1
    const-string v0, "ClipStackManager"

    const-string v2, "No video file or too short; deleting"

    invoke-static {v0, v2}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 178
    sget-object v0, Lcom/instagram/creation/video/g/c;->d:Lcom/instagram/creation/video/g/c;

    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/g/a;->a(Lcom/instagram/creation/video/g/c;)V

    .line 179
    invoke-virtual {p0}, Lcom/instagram/creation/video/a;->j()V

    goto :goto_0

    .line 175
    :cond_2
    const-string v0, "ClipStackManager"

    const-string v2, "No video file found"

    invoke-static {v0, v2}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1
.end method

.method public j()V
    .locals 3

    .prologue
    .line 184
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->d()Lcom/instagram/creation/video/g/a;

    move-result-object v0

    .line 185
    if-eqz v0, :cond_1

    .line 188
    invoke-virtual {v0}, Lcom/instagram/creation/video/g/a;->c()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 189
    invoke-virtual {v0}, Lcom/instagram/creation/video/g/a;->c()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/n/a;->a(Ljava/lang/String;)V

    .line 193
    :goto_0
    iget-object v1, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/g/d;->b(Ljava/lang/Object;)Z

    .line 197
    :goto_1
    return-void

    .line 191
    :cond_0
    const-string v1, "ClipStackManager"

    const-string v2, "Deleted clip did not have a video file"

    invoke-static {v1, v2}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 195
    :cond_1
    const-string v0, "ClipStackManager"

    const-string v1, "Attempted to delete a non-existent clip"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1
.end method

.method public k()V
    .locals 2

    .prologue
    .line 200
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->d()Lcom/instagram/creation/video/g/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 201
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->d()Lcom/instagram/creation/video/g/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/creation/video/g/c;->c:Lcom/instagram/creation/video/g/c;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/g/a;->a(Lcom/instagram/creation/video/g/c;)V

    .line 203
    :cond_0
    return-void
.end method

.method public l()I
    .locals 1

    .prologue
    .line 206
    invoke-virtual {p0}, Lcom/instagram/creation/video/a;->c()I

    move-result v0

    rsub-int v0, v0, 0x3a98

    return v0
.end method

.method public m()Z
    .locals 2

    .prologue
    .line 210
    invoke-virtual {p0}, Lcom/instagram/creation/video/a;->l()I

    move-result v0

    const/16 v1, 0x12c

    if-ge v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public n()Z
    .locals 1

    .prologue
    .line 214
    invoke-virtual {p0}, Lcom/instagram/creation/video/a;->l()I

    move-result v0

    if-gtz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public o()I
    .locals 1

    .prologue
    .line 218
    iget-object v0, p0, Lcom/instagram/creation/video/a;->a:Lcom/instagram/creation/video/g/d;

    invoke-virtual {v0}, Lcom/instagram/creation/video/g/d;->b()I

    move-result v0

    return v0
.end method

.method public p()Z
    .locals 1

    .prologue
    .line 226
    iget-boolean v0, p0, Lcom/instagram/creation/video/a;->d:Z

    return v0
.end method
